package com.swsc.solarverse.dao.entity.forward;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.swsc.solarverse.dao.entity.base.AssignBaseLongIdDO;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * <p>
 * 组串实时数据
 * </p>
 *
 * @author AutoGenerator
 * @since 2022-08-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("solar_forward_string_data")
public class ForwardStringDataDO extends AssignBaseLongIdDO {


    @TableField("tenant_no")
    private Integer tenantNo;

    @TableField("organ_no")
    private Integer organNo;

    /**
     * 上级设备id(汇流箱)
     */
    @TableField("device_pid")
    private Long devicePid;

    /**
     * 设备id
     */
    @TableField("device_id")
    private Long deviceId;

    @TableField("device_name")
    private String deviceName;
    @TableField("device_code")
    private String deviceCode;

    /**
     * 电压
     */
    @TableField("voltage")
    private Double voltage;

    /**
     * 电流
     */
    @TableField("electric_current")
    private Double electricCurrent;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 数据时间
     */
    @TableField("data_time")
    private LocalDateTime dataTime;

    public ForwardStringDataDO() {
    }

    public ForwardStringDataDO(Integer tenantNo, Integer organNo, Long devicePid, Long deviceId, String deviceName, Double voltage, Double electricCurrent, LocalDateTime createTime, LocalDateTime dataTime) {
        this.tenantNo = tenantNo;
        this.organNo = organNo;
        this.devicePid = devicePid;
        this.deviceId = deviceId;
        this.deviceName = deviceName;
        this.voltage = voltage;
        this.electricCurrent = electricCurrent;
        this.createTime = createTime;
        this.dataTime = dataTime;
    }

    public ForwardStringDataDO(Integer tenantNo, Integer organNo, Long devicePid, Long deviceId, String deviceName, String deviceCode, LocalDateTime dataTime, LocalDateTime createTime) {
        this.tenantNo = tenantNo;
        this.organNo = organNo;
        this.devicePid = devicePid;
        this.deviceId = deviceId;
        this.deviceName = deviceName;
        this.deviceCode = deviceCode;
        this.dataTime = dataTime;
        this.createTime = createTime;

    }

    public ForwardStringDataDO(Integer tenantNo, Integer organNo, Long devicePid, Long deviceId, String deviceName, String deviceCode, Double voltage, Double electricCurrent, LocalDateTime createTime, LocalDateTime dataTime) {
        this.tenantNo = tenantNo;
        this.organNo = organNo;
        this.devicePid = devicePid;
        this.deviceId = deviceId;
        this.deviceName = deviceName;
        this.deviceCode = deviceCode;
        this.voltage = voltage;
        this.electricCurrent = electricCurrent;
        this.createTime = createTime;
        this.dataTime = dataTime;
    }
}
